﻿using System;
using Newtonsoft.Json;

namespace ChinaTax.LeQi
{
    public class RedConfirmRequest : Request<RedConfirmResponse>
    {
        public RedConfirmRequest()
        {
            ServiceCode = "QDHZQRDQR";
        }

        [JsonProperty("xsfnsrsbh")]
        public string TaxNo { get => LeQiConfig.TaxNo; }

        [JsonProperty("uuid")]
        public string Uuid { get; set; }

        [JsonProperty("hzqrdbh")]
        public string RedConfirmNo { get; set; }

        [JsonProperty("qrlx")]
        //Y：同意 N：不同意 C：撤销
        public string ConfirmType { get; set; }
    }

    public class RedConfirmResponse : Response
    {
        [JsonProperty("qrrq")]
        //格式：yyyy-MM-dd HH:mm:ss
        public string ConfirmDate { get; set; }

    }

}
